package com.yd.location.module.cms.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yd.location.common.spring.mpbase.MyEntity;
import com.yd.location.common.validation.annotation.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Created by zk on 2020-07-14 19:56
 * @description 系统消息
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("cms_system_notice")
@Table(name = "cms_system_notice")
public class SystemNotice extends MyEntity {
    @NotBlank(message = "请填写标题")
    private String name;//标题
    @NotBlank(message = "请填写消息内容")
    private String content;//内容
}
